<template>
	<view class="wrap">
		<view class="topSearch u-flex">
			<view class="dateTime">
				<text>日期：</text>
				<input v-model="myDate" disabled="true" @click="timerShow=true"/>
				<u-button style="margin-left:10rpx;" type="primary" size="mini">查询</u-button>
			</view>
			<view class="u-text-right u-flex-1">
				
				<u-button type="success" size="mini" @click="addPage('pages/workbench/dispatch/scene/add')">新增</u-button>
			</view>
		</view>
		<view class="list">
			<view class="listmode">
				<view class="title u-flex">
				<view class="u-flex-1 u-line-2">福建防汛</view>
				<view class="date">2021年8月20日</view>
				</view>
				<view class="item" @click="addPage('pages/workbench/dispatch/scene/chatRoom')">
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
				</view>
			</view>
			<view class="listmode u-m-t-20">
				<view class="title u-flex">
					<view class="u-flex-1 u-line-2">作战名称如森林救援</view>
					<view class="date">2021年8月20日</view>
				</view>
				<view class="item">
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
					<view class="box">
						<image src="@/static/images/p1.jpg" mode="widthFix"/></image>
						<view class="info u-line-2">
							这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行这边是作战介绍,做多顯示兩行
						</view>
					</view>
				</view>
			</view>
		</view>
		<u-picker mode="time" v-model="timerShow" :params="params" @confirm="timerConfirm"></u-picker>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				myDate:"",
				timerShow:false,
				params:{
					year: true,
					month: true,
					day: true,
				}
			}
		},
		methods:{
			addPage(url){
				this.$u.route({
					url: url
				});
			},
			timerConfirm(e){
				
				this.myDate = `${e.year}-${e.month}-${e.day}`
			}
		}
	}
</script>

<style lang="scss" scoped>
.topSearch{
	padding:20rpx;
	.dateTime{
		line-height: 56rpx;
		font-size:22rpx;
		text{
			float:left;
		}
		input{
			font-size:22rpx;
			float:left;
			width: 200rpx;
			height:56rpx;
			line-height: 56rpx;
			padding:0 10rpx;
			border:1px solid #d9d9d9;
			border-radius:0.3em;
		}
	}
}
.list{
	overflow: hidden;
	.title{
		padding:10rpx 20rpx;
		font-size:28rpx;
		color:#2979FF;
		.date{
			font-size:22rpx;
			color:#999;
		}
	}
	.item{
		overflow: hidden;
		padding:10rpx;
		.box{
			padding:10rpx 10rpx 0;
			float:left;
			width: 50%;
			box-shadow: 0 0 5px rgba(0,0,0,0.3);
			border-radius:0.3em;
			overflow: hidden;
			image{
				width: 100%;
				vertical-align: middle;
			}
		}
		.info{
			margin:16rpx 6rpx;
			height:65rpx;
			overflow: hidden;
			color:#666;
			font-size:24rpx;
		}
	}
}
</style>
